//请求后台的方法
import request from '@/request'

//分页查询需求信息列表
export function getRequirementBatchInfoListByPage(data){
  return request({
    url:'/requirementBatch/getRequirementBatchInfoListByPage',
    method: 'post',
	data
  })
}

//查询需求信息
export function getRequirementBatchInfo(data){
  return request({
    url:'/requirementBatch/getRequirementBatchInfo',
    method: 'post',
	data
  })
}

//根绝需求号分页查询对应工单信息
export function getWorkOrderInfoByQmsNo(data){
  return request({
    url:'/requirementBatch/getWorkOrderInfoByQmsNo',
    method: 'post',
	data
  })
}

//更新需求对应批次的版本信息
export function updateRelaseInfo(data){
  return request({
    url:'/requirementBatch/updateRelaseInfo',
    method: 'post',
	data
  })
}


//查询需求信息线图
export function getRequirementBatchDiagram(data){
  return request({
    url:'/requirementBatch/getRequirementBatchDiagram',
    method: 'post',
	data
  })
}

//更新需求对应批次的版本信息
export function updateRequirement(data){
  return request({
    url:'/requirementBatch/updateRequirement',
    method: 'post',
	data
  })
}

//添加，修改附件
export function updateRequirementAnnex(data){
  return request({
    url:'/requirementBatch/updateRequirementAnnex',
	contentType:'multipart/form-data',
    method: 'post',
	data
  })
}


/**
 * 显示附件
 * @param {Object} data
 */
export function getFileList(data){
  return request({
    url:'/requirementBatch/getFileList',
    // contentType:'multipart/form-data',
	method: 'post',
	// responseType:'blob',
	data
  })
}


export function appendixDown(data){
  return request({
    url:'/requirementBatch/appendixDown',
    method: 'post',
	responseType:'blob',
	data
  })
}


/**
 * 查询内外联配置blob内容
 * @param {Object} data
 */
export function esbfileDown(data){
  return request({
    url:'/requirementBatch/esbfileDown',
    method: 'post',
	data
  })
}

/**
 * 查询内外联配置blob内容
 * @param {Object} data
 */
export function getRequirementBatchNum(data){
  return request({
    url:'/requirementBatch/getRequirementBatchNum',
    method: 'post',
	data
  })
}


